package designmode.design7;

/**
 * 汽车颜色枚举
 *
 * @author lfg
 * @version 1.0
 */
public enum CarColorEnum {
    /**
     * RED:红色
     * BLUE:蓝色
     */
    RED("red", "红色"),
    BLUE("blue", "蓝色");

    private final String code;
    private final String text;

    CarColorEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }

    public String getCode() {
        return code;
    }

    public String getText() {
        return text;
    }
}
